/**
 * es5 模块化
 */

(function () {

    var testModule = function () {

    };

    var _var = 1;
    var _click = function () {
        console.log("click");
    };

    testModule.init = function () {
        console.log("init");
        console.log(_var);
    };

    testModule.initEvent = function () {
        console.log("initEvent");
        $("#button1").on("click", function () {
            _click();
        });
    };


    window.testModule = testModule
})();